﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SGSN_try
{
    public static class BinaryProperties
    {
        public static int cdrLength = 490;

        public static int startIndex_cdrLenght = 2;
        public static int lenght_cdrLenght = 2;
        public static int startIndex_IMSI = 8;
        public static int length_IMSI = 8;
        public static int startIndex_IMEI = 16;
        public static int length_IMEI = 8;
        public static int startIndex_MSISDN = 26;
        public static int length_MSISDN = 9;        
        public static int startIndex_sgsn = 8;
        public static int length_sgsn= 16;
        /*public static int startIndex_ggsn = 67;
        public static int length_ggsn = 16;
        public static int startIndex_pdp = 187;
        public static int length_pdp = 16;*/
        public static int startIndex_LAC = 29;
        public static int length_LAC = 2;
        public static int startIndex_routingArea = 57;
        public static int length_routingArea = 1;
        public static int startIndex_ggsn = 63;
        public static int length_ggsn = 16;

        public static string swap(string Byte)
        {
            string s1 = Byte.Substring(0, 1);
            string s2 = Byte.Substring(Byte.Length - 1, 1);
            return string.Format("{0}{1}", s2, s1);
        }
    }
}
